package com.exam.online.system.dao;

import com.exam.online.system.entity.StuCourseRelation;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StuCourseRelationDAO {
    int deleteByPrimaryKey(Integer id);

    int insert(StuCourseRelation record);

    int insertSelective(StuCourseRelation record);

    StuCourseRelation selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(StuCourseRelation record);

    int updateByPrimaryKey(StuCourseRelation record);

    @Select("select stu_id from `t_stu_course_relation` where course_id = #{courseId}")
    List<Integer> selectByCourseId(@Param("courseId") Integer courseId);
}